package com.pet.service;

import com.pet.pojo.Comment;
import com.pet.pojo.Topic;
import com.pet.vo.PageResult;

import java.text.ParseException;
import java.util.List;

public interface ForumService {
    PageResult findAllTopicList(PageResult pageResult) throws ParseException;

    Topic findATopicById(Integer id);

    List<Comment> findAllCommentByTopicId(Integer id);

    void saveComment(Comment comment);

    void addTopic(Topic topic);

    List<Topic> findHotTopicList();

}
